package svc

import (
	"github.com/zeromicro/go-zero/zrpc"
	"zg1/weipinhui/api/internal/config"
	"zg1/weipinhui/wphrpc/wphrpcclient"
)

type ServiceContext struct {
	Config config.Config
	WphRpc wphrpcclient.Wphrpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		WphRpc: wphrpcclient.NewWphrpc(zrpc.MustNewClient(c.WphRpc)),
	}
}
